package com.zy.explore.license.domain.mybatis.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zy.explore.license.infrastructure.base.mybatis.MpBaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Id;

/**
 * 用户角色关联表(表user_role)ORM实体对象
 *
 * @author ZY
 * @date 2021-05-08 23:00:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_role")
public class UserRole extends MpBaseEntity<UserRole, Integer> {

    /**
     * 用户角色关联表主键ID
     */
    @Id
    @TableId
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 角色ID
     */
    private Integer roleId;

}